<?php
session_start();

require_once 'include/init.php';
require_once 'include/lib/weibooauth.php';

$oAuth = new WeiboOAuth( WB_AKEY , WB_SKEY  );

$keys = $oAuth->getRequestToken();

	$callback =  URI . 'callback.php';



$accessUrl = $oAuth->getAuthorizeURL( $keys['oauth_token'] ,false , $callback );

$_SESSION['keys'] = $keys;

$tpl->assign('accessurl', $accessUrl);

$tpl->display('index.tpl');